<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="t" %>
<%
	request.setAttribute("path", request.getContextPath());
%>
<!DOCTYPE html>
<html>
<head>
	<title>致-青春 ${category.name } 文章列表</title>
	<meta property="qc:admins" content="140476144562015116730566375" />
	<link rel="stylesheet" type="text/css" href="${path}/css/base.css" />
	<script type="text/javascript" src="${path}/js/jquery-1.10.2.min.js"></script>
	<script type="text/javascript">
		function collect() {
			// 暂时未加特效
			alert("收藏成功");
		}
	</script>
</head>
<body>
	<div id="container">
		<jsp:include page="/page/common/header.jsp"></jsp:include>
		<div id="kernel" class="center-box">
		<form name='f1' method="post">
		<div class="category">
			<h1>${category.name }</h1>
			<ul>
			<c:forEach items="${list }" var="item">
				<li>
					<div class="achievement">
 						${item.total }
 					</div>
					<div class="title">
						<a href="article.html?id=${item.id }">${item.title }</a>
					</div>
					<div class="summary">
						<span>${item.authorName }  发表于
							<fmt:formatDate value="${item.insertTime }" pattern="yyyy-MM-dd HH:mm:ss"/> 
						</span>
					</div>
				</li>
			</c:forEach>
			</ul>
			<div class="pager"><!-- 暂时没有这个css样式 -->
				<t:page formName="f1"/>
			</div>
		</div>
		</form>
		<div class="sidebar">
			<jsp:include page="/sidebar.html"></jsp:include>
		</div>
		</div>
		<jsp:include page="/page/common/footer.jsp"></jsp:include>
	</div>
</body>
</html>